package com.ygqh.baby.quartz;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.quartz.Job;
import org.quartz.JobDetail;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import com.ygqh.baby.utils.DateConvertUtils;

public class QuartzBalanceJob implements Job {

	@Override
	public void execute(JobExecutionContext arg0) throws JobExecutionException {
		JobDetail jobDetail = arg0.getJobDetail();
		System.out.println(jobDetail.getKey());
		System.out.println(jobDetail.getJobDataMap().get("orderId").toString());
		System.out.println(arg0.getJobRunTime());
		System.out.println(DateConvertUtils.formatDateTime(new Date(arg0.getJobRunTime())));
		System.out.println(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()) + "★★★★★★★★★★★");
	}
	

}
